package com.zhao.demo.service;

import com.zhao.demo.dao.UserDao;
import com.zhao.demo.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author xiaoZhao
 * @date 2022/7/24
 * @describe
 */
public interface UserService {

    List<User> getUserList();

    User getUserById(Integer id);

    int addUser(User user);

    int updateUser(User user);

    int deleteUser(Integer id);
}
